package top.lt.lt_ssm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import top.lt.lt_ssm.bean.adv;
import top.lt.lt_ssm.dao.AdvDao;
import top.lt.lt_ssm.service.AdvService;

@Service
public class AdvServiceImpl implements AdvService{
	
	@Resource
	private AdvDao advDao;

	@Override
	public List<adv> getall() {
		return advDao.getall();
	}

	@Override
	public int delByid(int id) {
		return advDao.delByid(id);
	}

	@Override
	public adv GetByid(int advid) {
		return advDao.GetByid(advid);
	}

	@Override
	public int updByid(adv ad) {
		return advDao.updByid(ad);
	}

	@Override
	public List<adv> getByAid(int aid) {
		return advDao.getByAid(aid);
	}

	@Override
	public List<adv> getByName(String name) {
		return advDao.getByName(name);
	}

	@Override
	public int insert(adv advs) {
		return advDao.insert(advs);
	}

}
